#!/bin/bash

# 创建目录
mkdir -p src/assets/fonts

# 下载Poppins字体文件
echo "下载Poppins字体文件..."

# 轻量字重
curl -o src/assets/fonts/poppins-v20-latin-300.woff2 "https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2"

# 常规字重
curl -o src/assets/fonts/poppins-v20-latin-regular.woff2 "https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2" 

# 中等字重
curl -o src/assets/fonts/poppins-v20-latin-500.woff2 "https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2"

# 粗体字重
curl -o src/assets/fonts/poppins-v20-latin-600.woff2 "https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2"

# 加粗字重
curl -o src/assets/fonts/poppins-v20-latin-700.woff2 "https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2"

# 下载Playball字体
echo "下载Playball字体文件..."
curl -o src/assets/fonts/playball-v16-latin-regular.woff2 "https://fonts.gstatic.com/s/playball/v16/TK3gWksYAxQ7jbsKcg8Eneo.woff2"

echo "所有字体文件已下载完成！" 